package com.lizhe.exception.exception;

/**
 * 类描述: 新定义一个异常类ModelViewException，
 * 将捕获到的异常Exception转化为ModelViewException
 *
 * @author Administrator
 * @create 2021-11-03 22:51
 */
// 针对 返回页面异常
public class ModelViewException extends RuntimeException {

    //将Exception 转换为ModelViewException
    public static ModelViewException transfer(Throwable cause) {
        return new ModelViewException(cause);
    }

    private ModelViewException(Throwable cause) {
        super(cause);
    }
}